package model

import "time"

// CheckIn 表示用户签到记录, 联合主键确保用户一天只能签到一次
type CheckIn struct {
	UserID uint      `gorm:"primaryKey"`
	Date   time.Time `gorm:"primaryKey"`

	User *User `gorm:"foreignKey:UserID;constraint:OnDelete:CASCADE"`
}
